<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="utf-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, height=device-height, initial-scale=1, user-scalable=no">
  <meta name="description" content="API docs for the ParagraphStyle constructor from the Class ParagraphStyle class from the dart:ui library, for the Dart programming language.">
  <title>ParagraphStyle constructor - ParagraphStyle class - dart:ui library - Dart API</title>
  <!-- required because all the links are pseudo-absolute -->
  <base href="../..">

  <link href="https://fonts.googleapis.com/css?family=Source+Code+Pro:500,400i,400,300|Source+Sans+Pro:400,300,700" rel="stylesheet">
  <link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
  <link rel="stylesheet" href="static-assets/github.css">
  <link rel="stylesheet" href="static-assets/styles.css">
  <link rel="icon" href="static-assets/favicon.png">
  
</head>

<body>

<div id="overlay-under-drawer"></div>

<header id="title">
  <button id="sidenav-left-toggle" type="button">&nbsp;</button>
  <ol class="breadcrumbs gt-separated dark hidden-xs">
    <li><a href="index.html">move_to_background</a></li>
    <li><a href="dart-ui/dart-ui-library.html">dart:ui</a></li>
    <li><a href="dart-ui/ParagraphStyle-class.html">ParagraphStyle</a></li>
    <li class="self-crumb">ParagraphStyle constructor</li>
  </ol>
  <div class="self-name">ParagraphStyle</div>
  <form class="search navbar-right" role="search">
    <input type="text" id="search-box" autocomplete="off" disabled class="form-control typeahead" placeholder="Loading search...">
  </form>
</header>

<main>

  <div id="dartdoc-sidebar-left" class="col-xs-6 col-sm-3 col-md-2 sidebar sidebar-offcanvas-left">
    <header id="header-search-sidebar" class="hidden-l">
      <form class="search-sidebar" role="search">
        <input type="text" id="search-sidebar" autocomplete="off" disabled class="form-control typeahead" placeholder="Loading search...">
      </form>
    </header>
    
    <ol class="breadcrumbs gt-separated dark hidden-l" id="sidebar-nav">
      <li><a href="index.html">move_to_background</a></li>
      <li><a href="dart-ui/dart-ui-library.html">dart:ui</a></li>
      <li><a href="dart-ui/ParagraphStyle-class.html">ParagraphStyle</a></li>
      <li class="self-crumb">ParagraphStyle constructor</li>
    </ol>
    
    <h5>ParagraphStyle class</h5>
    <ol>
      <li class="section-title"><a href="dart-ui/ParagraphStyle-class.html#constructors">Constructors</a></li>
      <li><a href="dart-ui/ParagraphStyle/ParagraphStyle.html">ParagraphStyle</a></li>
    
      <li class="section-title">
        <a href="dart-ui/ParagraphStyle-class.html#instance-properties">Properties</a>
      </li>
      <li><a href="dart-ui/ParagraphStyle/hashCode.html">hashCode</a></li>
      <li class="inherited"><a href="dart-core/Object/runtimeType.html">runtimeType</a></li>
    
      <li class="section-title"><a href="dart-ui/ParagraphStyle-class.html#instance-methods">Methods</a></li>
      <li><a href="dart-ui/ParagraphStyle/toString.html">toString</a></li>
      <li class="inherited"><a href="dart-core/Object/noSuchMethod.html">noSuchMethod</a></li>
    
      <li class="section-title"><a href="dart-ui/ParagraphStyle-class.html#operators">Operators</a></li>
      <li><a href="dart-ui/ParagraphStyle/operator_equals.html">operator ==</a></li>
    
    
    
    </ol>
  </div><!--/.sidebar-offcanvas-left-->

  <div id="dartdoc-main-content" class="col-xs-12 col-sm-9 col-md-8 main-content">
      <div><h1><span class="kind-constructor">ParagraphStyle</span> constructor</h1></div>

    <section class="multi-line-signature">
      
      <span class="name ">ParagraphStyle</span>(<wbr>{<span class="parameter" id="-param-textAlign"><span class="type-annotation"><a href="dart-ui/TextAlign-class.html">TextAlign</a></span> <span class="parameter-name">textAlign</span>, </span> <span class="parameter" id="-param-textDirection"><span class="type-annotation"><a href="dart-ui/TextDirection-class.html">TextDirection</a></span> <span class="parameter-name">textDirection</span>, </span> <span class="parameter" id="-param-maxLines"><span class="type-annotation"><a href="dart-core/int-class.html">int</a></span> <span class="parameter-name">maxLines</span>, </span> <span class="parameter" id="-param-fontFamily"><span class="type-annotation"><a href="dart-core/String-class.html">String</a></span> <span class="parameter-name">fontFamily</span>, </span> <span class="parameter" id="-param-fontSize"><span class="type-annotation"><a href="dart-core/double-class.html">double</a></span> <span class="parameter-name">fontSize</span>, </span> <span class="parameter" id="-param-height"><span class="type-annotation"><a href="dart-core/double-class.html">double</a></span> <span class="parameter-name">height</span>, </span> <span class="parameter" id="-param-fontWeight"><span class="type-annotation"><a href="dart-ui/FontWeight-class.html">FontWeight</a></span> <span class="parameter-name">fontWeight</span>, </span> <span class="parameter" id="-param-fontStyle"><span class="type-annotation"><a href="dart-ui/FontStyle-class.html">FontStyle</a></span> <span class="parameter-name">fontStyle</span>, </span> <span class="parameter" id="-param-strutStyle"><span class="type-annotation"><a href="dart-ui/StrutStyle-class.html">StrutStyle</a></span> <span class="parameter-name">strutStyle</span>, </span> <span class="parameter" id="-param-ellipsis"><span class="type-annotation"><a href="dart-core/String-class.html">String</a></span> <span class="parameter-name">ellipsis</span>, </span> <span class="parameter" id="-param-locale"><span class="type-annotation"><a href="dart-ui/Locale-class.html">Locale</a></span> <span class="parameter-name">locale</span></span> })
    </section>

    <section class="desc markdown">
      <p>Creates a new ParagraphStyle object.</p><ul><li>
<p><code>textAlign</code>: The alignment of the text within the lines of the
paragraph. If the last line is ellipsized (see <code>ellipsis</code> below), the
alignment is applied to that line after it has been truncated but before
the ellipsis has been added.</p></li><li>
<p><code>textDirection</code>: The directionality of the text, left-to-right (e.g.
Norwegian) or right-to-left (e.g. Hebrew). This controls the overall
directionality of the paragraph, as well as the meaning of
<a href="dart-ui/TextAlign-class.html">TextAlign.start</a> and <a href="dart-ui/TextAlign-class.html">TextAlign.end</a> in the <code>textAlign</code> field.</p></li><li>
<p><code>maxLines</code>: The maximum number of lines painted. Lines beyond this
number are silently dropped. For example, if <code>maxLines</code> is 1, then only
one line is rendered. If <code>maxLines</code> is null, but <code>ellipsis</code> is not null,
then lines after the first one that overflows the width constraints are
dropped. The width constraints are those set in the
<a href="dart-ui/ParagraphConstraints-class.html">ParagraphConstraints</a> object passed to the <a href="dart-ui/Paragraph/layout.html">Paragraph.layout</a> method.</p></li><li>
<p><code>fontFamily</code>: The name of the font family to apply when painting the text,
in the absence of a <code>textStyle</code> being attached to the span.</p></li><li>
<p><code>fontSize</code>: The fallback size of glyphs (in logical pixels) to
use when painting the text. This is used when there is no <a href="dart-ui/TextStyle-class.html">TextStyle</a>.</p></li><li>
<p><code>height</code>: The height of the spans as a multiplier of the font size. The
fallback height to use when no height is provided in through
<code>TextStyle.height</code>.</p></li><li>
<p><code>fontWeight</code>: The typeface thickness to use when painting the text
(e.g., bold).</p></li><li>
<p><code>fontStyle</code>: The typeface variant to use when drawing the letters (e.g.,
italics).</p></li><li>
<p><code>strutStyle</code>: The properties of the strut. Strut defines a set of minimum
vertical line height related metrics and can be used to obtain more
advanced line spacing behavior.</p></li><li>
<p><code>ellipsis</code>: String used to ellipsize overflowing text. If <code>maxLines</code> is
not null, then the <code>ellipsis</code>, if any, is applied to the last rendered
line, if that line overflows the width constraints. If <code>maxLines</code> is
null, then the <code>ellipsis</code> is applied to the first line that overflows
the width constraints, and subsequent lines are dropped. The width
constraints are those set in the <a href="dart-ui/ParagraphConstraints-class.html">ParagraphConstraints</a> object passed to
the <a href="dart-ui/Paragraph/layout.html">Paragraph.layout</a> method. The empty string and the null value are
considered equivalent and turn off this behavior.</p></li><li>
<p><code>locale</code>: The locale used to select region-specific glyphs.</p></li></ul>
    </section>
    
    <section class="summary source-code" id="source">
      <h2><span>Implementation</span></h2>
      <pre class="language-dart"><code class="language-dart">&#47;&#47;   See: https:&#47;&#47;github.com&#47;flutter&#47;flutter&#47;issues&#47;9819
&#47;&#47;&#47;
&#47;&#47;&#47; * `textDirection`: The directionality of the text, left-to-right (e.g.
&#47;&#47;&#47;   Norwegian) or right-to-left (e.g. Hebrew). This controls the overall
&#47;&#47;&#47;   directionality of the paragraph, as well as the meaning of
&#47;&#47;&#47;   [TextAlign.start] and [TextAlign.end] in the `textAlign` field.
&#47;&#47;&#47;
&#47;&#47;&#47; * `maxLines`: The maximum number of lines painted. Lines beyond this
&#47;&#47;&#47;   number are silently dropped. For example, if `maxLines` is 1, then only
&#47;&#47;&#47;   one line is rendered. If `maxLines` is null, but `ellipsis` is not null,
&#47;&#47;&#47;   then lines after the first one that overflows the width constraints are
&#47;&#47;&#47;   dropped. The width constraints are those set in the
&#47;&#47;&#47;   [ParagraphConstraints] object passed to the [Paragraph.layout] method.
&#47;&#47;&#47;
&#47;&#47;&#47; * `fontFamily`: The name of the font family to apply when painting the text,
&#47;&#47;&#47;   in the absence of a `textStyle` being attached to the span.
&#47;&#47;&#47;
&#47;&#47;&#47; * `fontSize`: The fallback size of glyphs (in logical pixels) to
&#47;&#47;&#47;   use when painting the text. This is used when there is no [TextStyle].
&#47;&#47;&#47;
&#47;&#47;&#47; * `height`: The height of the spans as a multiplier of the font size. The
&#47;&#47;&#47;   fallback height to use when no height is provided in through
&#47;&#47;&#47;   [TextStyle.height].
&#47;&#47;&#47;
&#47;&#47;&#47; * `fontWeight`: The typeface thickness to use when painting the text
&#47;&#47;&#47;   (e.g., bold).
&#47;&#47;&#47;
&#47;&#47;&#47; * `fontStyle`: The typeface variant to use when drawing the letters (e.g.,
&#47;&#47;&#47;   italics).
&#47;&#47;&#47;
&#47;&#47;&#47; * `strutStyle`: The properties of the strut. Strut defines a set of minimum
&#47;&#47;&#47;   vertical line height related metrics and can be used to obtain more
&#47;&#47;&#47;   advanced line spacing behavior.
&#47;&#47;&#47;
&#47;&#47;&#47; * `ellipsis`: String used to ellipsize overflowing text. If `maxLines` is
&#47;&#47;&#47;   not null, then the `ellipsis`, if any, is applied to the last rendered
&#47;&#47;&#47;   line, if that line overflows the width constraints. If `maxLines` is
&#47;&#47;&#47;   null, then the `ellipsis` is applied to the first line that overflows
&#47;&#47;&#47;   the width constraints, and subsequent lines are dropped. The width
&#47;&#47;&#47;   constraints are those set in the [ParagraphConstraints] object passed to
&#47;&#47;&#47;   the [Paragraph.layout] method. The empty string and the null value are
&#47;&#47;&#47;   considered equivalent and turn off this behavior.
&#47;&#47;&#47;
&#47;&#47;&#47; * `locale`: The locale used to select region-specific glyphs.
ParagraphStyle({
  TextAlign textAlign,
  TextDirection textDirection,
  int maxLines,
  String fontFamily,
  double fontSize,
  double height,
  FontWeight fontWeight,
  FontStyle fontStyle,
  StrutStyle strutStyle,
  String ellipsis,
  Locale locale,
}) : _encoded = _encodeParagraphStyle(
       textAlign,
       textDirection,
       maxLines,
       fontFamily,
       fontSize,
       height,
       fontWeight,
       fontStyle,
       strutStyle,
       ellipsis,
       locale,
     ),
     _fontFamily = fontFamily,
     _fontSize = fontSize,
     _height = height,
     _strutStyle = strutStyle,
     _ellipsis = ellipsis,
     _locale = locale;</code></pre>
    </section>

  </div> <!-- /.main-content -->

  <div id="dartdoc-sidebar-right" class="col-xs-6 col-sm-6 col-md-2 sidebar sidebar-offcanvas-right">
  </div><!--/.sidebar-offcanvas-->

</main>

<footer>
  <span class="no-break">
    move_to_background 0.1.0
  </span>

  
</footer>

<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
<script src="static-assets/typeahead.bundle.min.js"></script>
<script src="static-assets/highlight.pack.js"></script>
<script src="static-assets/URI.js"></script>
<script src="static-assets/script.js"></script>


</body>

</html>
